export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "序号",
      prop: "id",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "商品名称",
      prop: "name",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "积分分值",
      prop: "points",
      type: "input",
      span: 12
    },
    {
      label: "赠品剩余库存",
      prop: "giftSurplusStock",
      type: "input",
      addDisplay: false,
      span: 12
    },
    {
      label: "兑换金额(元)",
      prop: "redeemMoney",
      type: "input",
      span: 12
    },
    {
      label: "兑换类型",
      prop: "redeemType",
      type: 'switch',
      dicData: [{
        label: '积分兑换',
        value: '0'
      }, {
        label: '积分+钱兑换',
        value: '1'
      }],
      slot: true,
      search: true,
      value: '0',
      span: 12
    },
    {
      label: "商品图片组id",
      prop: "imageGroupId",
      type: "select",
      dicUrl: `/admin/mall/imagesGroup/groupIds`,
      props: {
        label: 'groupId',
        value: 'groupId'
      },
      span: 12
    },
    {
      label: "商品状态",
      prop: "status",
      type: 'select',
      dicData: [{
        label: '已生效',
        value: 'Y'
      }, {
        label: '已失效',
        value: 'N'
      }, {
        label: '已删除',
        value: 'D'
      }],
      slot: true,
      search: true,
      addDisplay: false,
      value: 'Y',
      span: 12
    },
    {
      label: "商品发布时间",
      prop: "releaseTime",
      type: "datetime",
      disabled: true,
      addDisplay: false,
      format: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "录入人",
      prop: "createBy",
      type: "input",
      disabled: true,
      addDisplay: false,
      span: 12
    },
  ]
}
